-- GENERATED SPELL FOR [Cabal Cultist] --


function spell0_18631(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(15614,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18631', 6330, 1)
end

function spell1_18631(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_18631', 559, 1)
end

function Sorts_18631(pUnit, Event)
local choix_sorts_18631 = math.random(0, 1)
if choix_sorts_18631 == 0 then
pUnit:RegisterEvent('spell0_18631', 1, 1)
end
if choix_sorts_18631 == 1 then
pUnit:RegisterEvent('spell1_18631', 1, 1)
end
end

function mob18631_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18631', math.random(1500, 3000), 1)
end

function mob18631_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18631_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18631_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18631, 1, 'mob18631_Action')
RegisterUnitEvent(18631, 2, 'mob18631_Leave')
RegisterUnitEvent(18631, 3, 'mob18631_Kill')
RegisterUnitEvent(18631, 4, 'mob18631_Die')
